package com.font.web.zhongyao;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.font.bean.Da;
import com.font.service.DaService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Da)表控制层
 *
 * @author makejava
 * @since 2023-07-27 07:08:04
 */
@RestController
@RequestMapping("da")
public class DaController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private DaService daService;


    @GetMapping
    public R selectAll(Page<Da> page, Da da) {
        return success(this.daService.page(page, new QueryWrapper<>(da)));
    }


}

